﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MND.Telnet
{
    class TelnetCodes
    {
        // Core
        public const int NUL = 0;
        public const int LF = 10;
        public const int CR = 13;


        // Optional
        public const int BEL = 7;
        public const int BS = 8;
        public const int HT = 9;
        public const int VT = 11;
        public const int FF = 12;


        // Commands
        public const int SE = 240;
        public const int NOP = 241;
        public const int DM = 242;
        public const int BRK = 243;
        public const int IP = 244;
        public const int AO = 245;
        public const int AYT = 246;
        public const int EC = 247;
        public const int EL = 248;
        public const int GA = 249;
        public const int SB = 250;

        
        // Operations
        public const int WILL = 251;
        public const int WONT = 252;
        public const int DO = 253;
        public const int DONT = 254;
        public const int IAC = 255;

        
        // Options
        public const int SuppresGoAhead = 3;
        public const int Status = 5;
        public const int Echo = 1;
        public const int TimingMark = 6;
        public const int TerminalType = 24;
        public const int WindowSize = 31;
        public const int TerminalSpeed = 32;
        public const int RemoteFlowControl = 33;
        public const int Linemode = 34;
        public const int EnvironmentVariables = 36;
    }
}
